package com.hi.hiparty.entity;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.solr.client.solrj.beans.Field;

public class Party {

	private int id;
	@Field
	private String partyid;
	@Field
	private Integer partyType;
	@Field
	private String title;
	@Field
	private String description;
	@Field
	private int userid;
	@Field
	private String nickname;
	@Field
	private String avatarUrl;
	@Field
	private String userPos;
	@Field
	private String address;
	@Field
	private String province;
	@Field
	private String city;
	@Field
	private String area;
	@Field
	private String partyPos;
	@Field
	private int creatorSex;
	@Field
	private int memberSexLimit;
	@Field
	private Date startTime;
	@Field
	private Date endTime;

	private String status;
	@Field
	private Date createTime;

	private Date modifiedTime;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPartyid() {
		return partyid;
	}

	public void setPartyid(String partyid) {
		this.partyid = partyid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public String getUserPos() {
		return userPos;
	}

	public void setUserPos(String userPos) {
		this.userPos = userPos;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getPartyPos() {
		return partyPos;
	}

	public void setPartyPos(String partyPos) {
		this.partyPos = partyPos;
	}

	public int getCreatorSex() {
		return creatorSex;
	}

	public void setCreatorSex(int creatorSex) {
		this.creatorSex = creatorSex;
	}

	public int getMemberSexLimit() {
		return memberSexLimit;
	}

	public void setMemberSexLimit(int memberSexLimit) {
		this.memberSexLimit = memberSexLimit;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Integer getPartyType() {
		return partyType;
	}

	public void setPartyType(Integer partyType) {
		this.partyType = partyType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifiedTime() {
		return modifiedTime;
	}

	public void setModifiedTime(Date modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	public void setPartyPos(Double plon, Double plat) {
		this.partyPos = plon + "," + plat;
	}

	public void setUserPos(double lon, double lat) {
		this.userPos = lon + "," + lat;
	}
	
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
